package co.yixiang.yshop.module.product.convert.storeproductstockwarning;

import java.util.*;

import co.yixiang.yshop.framework.common.pojo.PageResult;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import co.yixiang.yshop.module.product.controller.admin.storeproductstockwarning.vo.*;
import co.yixiang.yshop.module.product.dal.dataobject.storeproductstockwarning.StoreProductStockWarningDO;

/**
 * 商品库存预警 Convert
 *
 * @author admin
 */
@Mapper
public interface StoreProductStockWarningConvert {

    StoreProductStockWarningConvert INSTANCE = Mappers.getMapper(StoreProductStockWarningConvert.class);

    StoreProductStockWarningDO convert(StoreProductStockWarningCreateReqVO bean);

    StoreProductStockWarningDO convert(StoreProductStockWarningUpdateReqVO bean);

    StoreProductStockWarningRespVO convert(StoreProductStockWarningDO bean);

    List<StoreProductStockWarningRespVO> convertList(List<StoreProductStockWarningDO> list);

    PageResult<StoreProductStockWarningRespVO> convertPage(PageResult<StoreProductStockWarningDO> page);

    List<StoreProductStockWarningExcelVO> convertList02(List<StoreProductStockWarningDO> list);

}
